# -*- coding:utf-8 -*-
from django import forms
from .models import *


class UserInfoForm(forms.ModelForm):

	class Meta:
		model = UserInfo
		fields = ['uname','upwd','uemail']

	uname = forms.CharField(label='用户',widget=forms.TextInput(attrs={'placeholder': u'请输入5-20个字符'}))
	upwd = forms.CharField(label='密码',widget=forms.PasswordInput(attrs={'placeholder': u'请输入8位密码'}))
	uemail = forms.CharField(label='邮箱',widget=forms.EmailInput(attrs={'placeholder':u'请输入正确邮箱'}))


